package com.alibaba.dubbo.demo.model;

import java.io.Serializable;

/**
 * @Author:chenjinhang
 * @Description:
 * @Date: create in 15:20 2018/2/7
 **/
public class Book implements Serializable {

    private String name;
    private Double price;

    public Book(String name, Double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
